public class TestAnimal {
    public static void main(String[] args) {
        Bear b = new Bear("白",4);
        System.out.println("北极熊颜色:"+b.getColor()+","+b.getLeg()+"条腿");
        b.eat();
        b.catchFish();
        Panda p = new Panda("黑白",4);
        System.out.println("大熊猫颜色:"+p.getColor()+","+p.getLeg()+"条腿");
        p.eat();
        p.climbTree();
    }
}
